<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抢红包</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Content-Type" content="text/html" />
<style type="text/css">
body {
	width: 100%;
	background: #f5f4f4;
	color: #cf3c36;
	margin: 0 auto;
	padding: 0;
	font-family: "微软雅黑"
}

.header {
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #fff;
	color: #242424;
}

.header h1 {
	font-size: 18px;
}

.tit {
	width: 100%;
	height: 24px;
	line-height: 24px;
}

.tit h4 {
	font-size: 14px;
	color: #000;
	margin-left: 10px;
}

.tit h1 {
	font-size: 20px;
	color: #cf3c36;
	text-align: center;
}

.time-item strong {
	background: #cf3c36;
	color: #fff;
	line-height: 39px;
	font-size: 16px;
	font-family: Arial;
	padding: 0 5px;
	margin-right: 10px;
	border-radius: 5px;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.main3 {
	width: 100%;
	font-size: 12px;
	color: #666;
}

.main3 ul li {
	width: 90%;
	line-height: 50px;
	list-style: none;
	border-bottom: #ddd 1px solid;
	float: left;
	margin-top: 5px;
	margin-bottom: 5px;
}

.main3 ul li img {
	width: 50px;
	height: 50px;
	float: left;
}

.main3 ul li p {
	line-height: 30px;
	float: left;
	margin-left: 10px;
}

.main3 ul li span {
	float: right;
}

.main {
	width: 240px;
	margin: 0 auto;
	text-align: center;
}

.main2 a img {
	border: #fff 3px solid;
}

.main2 a img:active {
	border: #F00 3px solid;
}
</style>
</head>
<body>
	<div class="header">
		<a href="javascript:history.go(-1);">
			<img src="${staticPath}/images/back2.png" style="width: 14px; height: 20px; float: left; margin-top: 10px; margin-left: 10px;">
		</a>
		<h1 style="padding-right: 14px;">抢红包</h1>
	</div>
	<div class="main" style="margin-top: 20px;">
		<div id="begin1">
			<div class="tit">
				<h4>距离红包开抢还有：</h4>
			</div>
			<div class="time-item">
				<strong id="hour_show1">0时</strong> <strong id="minute_show1">0分</strong> <strong id="second_show1">0秒</strong>
			</div>
			<!--倒计时模块-->
		</div>
		<div id="begin2" style="display: none">
			<div class="tit">
				<h1>红包发放中~~~</h1>
			</div>
		</div>
		<div id="begin3" style="display: none">
			<div class="tit">
				<h1>红包已发完</h1>
			</div>
		</div>
		<div id="begin4" style="display: none">
			<div class="tit">
				<h1>目前没有红包活动</h1>
			</div>
		</div>

		<div class="main2">
			<a href="javascript:check()">
				<img src="${staticPath}/images/hongbao.png">
			</a>
		</div>
		<div id="wrong" class="tit" style="margin-bottom: 20px;">
			<h4></h4>
		</div>
		<div id="next1">
			<div class="tit">
				<h4>距离下次开抢还有：</h4>
			</div>
			<div class="time-item" style="padding-left: 10px;">
				<strong id="hour_show2">0时</strong> <strong id="minute_show2">0分</strong> <strong id="second_show2">0秒</strong>
			</div>
			<!--倒计时模块-->
		</div>
		<div id="next2">
			<div class="tit">
				<h1>下次发红包活动还在筹划中</h1>
			</div>
		</div>
		<div class="tit">
			<h1>敬请期待！</h1>
		</div>
	</div>
	<div class="main3">
		<ul>
			<li>共抢到过${memberRedList==null?0:memberRedList.size()}个红包</li>
			<c:forEach items="${memberRedList}" var="memberRed">
				<li>
					<img src="${tx}">
					<p>${memberRed.red.title }</p>
					<span>
						<fmt:formatDate value="${memberRed.createTime }" pattern="yyyy-MM-dd HH:mm:ss" />
					</span>
				</li>
			</c:forEach>
		</ul>
	</div>
</body>
<script type="text/javascript" src="${staticPath}/js/app/red/index.js"></script>
</html>